import { Module } from '@nestjs/common';
import { Order_Service } from './order.service';
import { Order_Controller } from './order.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Order } from './assets/order.entity';
import { Product_Module } from '../product/product.module';
import { UserClient } from '../userClient/assets/userClient.entity';
import { Seat_Module } from '../seat/seat.module';
import { Good } from '../good/assets/good.entity';
import { Seat } from '../seat/assets/seat.entity';
import { Alipay_Module } from '../../commonModule/alipay/alipay.module';
import { Scheduled_Module } from '../../commonModule/scheduled/scheduled.module';
import { Coupon } from '../coupon/assets/coupon.entity';
import { CouponUserClient } from '../couponUserClient/assets/couponUserClient.entity';
import { CouponUserClient_Module } from '../couponUserClient/couponUserClient.module';
import { Rebates } from '../rebates/assets/rebates.entity';
import { DistributionRate } from '../distributionRate/assets/distributionRate.entity';
import { OrderVirtualDetail } from '../orderVirtualDetail/assets/orderVirtualDetail.entity';

@Module({
  imports: [
    Product_Module,
    Seat_Module,
    Alipay_Module,
    Scheduled_Module,
    CouponUserClient_Module,
    TypeOrmModule.forFeature([
      CouponUserClient,
      Order,
      UserClient,
      Good,
      Seat,
      Coupon,
      Rebates,
      DistributionRate,
      OrderVirtualDetail,
    ]),
  ],
  controllers: [Order_Controller],
  providers: [Order_Service],
  exports: [Order_Service],
})
export class Order_Module {}
